<%@ page contentType="text/html; charset=gbk" language="java" import="java.sql.*,java.util.Vector" errorPage="" %>
<jsp:useBean id="filemanager"  class="MyFile.FileManager"/>
<jsp:useBean id="userxml"  class="xml.userxml"/>
<jsp:useBean id="bf"  class="basetools.BaseFunction"/>
<jsp:useBean id="b6"  class="basetools.Base64"/>
<%@ page import="java.util.Vector"%>
<%@ page import="java.io.File"%>
<%@ page import="java.io.*"%>
<%@ page import="org.jdom.*"%>
<%@ page import="org.jdom.output.*"%>
<%!int num,i,itemcount,themecount=0,j;String  answer,answertype="1",dirname="",currentuser="ytm",examcheckcode="0",examuserkey="",result="";%>
<%

   try{
      String username="",enterprice="",departname="",parentdepart="",oldname="",storagename="",examkey="";

      if(session.getAttribute("username")!=null){
         username=(String)session.getAttribute("username");
      }
      if(session.getAttribute("enterprice")!=null){
         enterprice=(String)session.getAttribute("enterprice");
      }
      String ipaddress=request.getRemoteAddr();

      response.setContentType("text/html; charset=gbk");
      String userstate=servlet.AttributeListener.judgeuser(enterprice,username,ipaddress,"1",request);
      if(userstate.equals("1")){
         String str,totalstr="";

         if(request.getParameter("dirname")!=null){
            dirname=new String(request.getParameter("dirname").getBytes("iso-8859-1"),"gbk");
         }


          dirname=b6.deescape(dirname);
         //System.out.println("deldir"+dirname);
         result=filemanager.deldir(enterprice,dirname);
         response.getWriter().println(result);
      }else{
         response.getWriter().println(bf.getinfomess(userstate));
      }
   }catch(Exception e){
      System.out.println(e.getMessage());
   }
%>
